  <!-- *** CUT top -->
  <table width="800"  border="0" cellspacing="0" cellpadding="0" class="form" id="category_top_table">
    <tr>
      <td align="left"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><div class="form_title">Category</div></td>
          </tr>
        </table></td>
    </tr>
    <!-- If you don't want notes erase this START -->
    <tr>
      <td><table width="100%"  border="0" cellspacing="0" cellpadding="0" class="form_note">
          <!-- Repeat this fo additional notes START -->
          <tr>
            <td valign="top" align="left"><table width="100%"  border="0" cellspacing="0" cellpadding="4" class="form_note_title">
                <tr>
                  <td><img src="img/modules/form_html_tpl_static_ajax_metallic/exclamation_mark.png" border="0" alt="icon exclamation mark"  width="16" height="16" /></td>
                  <td width="100%" align="left">Note:</td>
                </tr>
              </table></td>
            <td align="left" width="99%"><div class="form_note_text">Fields marked with &quot;*&quot; are mandatory.</div></td>
          </tr>
          <!-- Repeat this fo additional notes END-->
        </table></td>
    </tr>
    <!-- If you don't want notes erase this END -->
    <tr>
      <td><div id="category">
          <form onsubmit="submit_ajax_category(); return false;" action="admin/modules/tangra_cms/category/category_edit.php" method="post" name="category_form" enctype="application/x-www-form-urlencoded">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td align="left"><table width="100%"  border="0" cellspacing="0" cellpadding="0" class="form_row">
                    <tr>
                      <td class="form_even_row"><!-- form_field_text category_title START-->
                        <table width="100%" border="0" cellpadding="3" cellspacing="0" class="form_row">
                          <tr>
                            <td width="180"><div align="right">Title*:</div></td>
                            <td width="1%"><input class="form" name="category_title" type="text" value="{$category_title_val}" maxlength="255" size="40" id="category_title"/></td>
                            <td>&nbsp;</td>
                          </tr>
                          {if $category_title_has_error}
                          <!-- Potential errors START -->
                          {if $category_title_error_mandatory_missing}
                          <!-- mandatory_missing START -->
                          <tr>
                            <td></td>
                            <td colspan="2"><div class="form_error_message">Error: Field is mandatory.</div></td>
                          </tr>
                          <!-- mandatory_missing END -->
                          {/if}
                          {if $category_title_error_max_length_exceeded}
                          <!-- max_length_exceeded START -->
                          <tr>
                            <td></td>
                            <td colspan="2"><div class="form_error_message">Error: Allowed maximum of 255 characters exceeded.</div></td>
                          </tr>
                          <!-- max_length_exceeded END -->
                          {/if}
                          <!-- Potential errors END -->
                          {/if}
                        </table>
                        <!-- form_field_text category_title END-->
                      </td>
                    </tr>
                    <tr>
                      <td class="form_odd_row"><!-- form_field_text category_hid START-->
                        <table width="100%" border="0" cellpadding="3" cellspacing="0" class="form_row">
                          <tr>
                            <td width="180"><div align="right">HID*:</div></td>
                            <td width="1%"><input class="form" name="category_hid" type="text" value="{$category_hid_val}" maxlength="100" size="40" id="category_hid"/></td>
                            <td>&nbsp;</td>
                          </tr>
                          {if $category_hid_has_error}
                          <!-- Potential errors START -->
                          {if $category_hid_error_mandatory_missing}
                          <!-- mandatory_missing START -->
                          <tr>
                            <td></td>
                            <td colspan="2"><div class="form_error_message">Error: Field is mandatory.</div></td>
                          </tr>
                          <!-- mandatory_missing END -->
                          {/if}
                          {if $category_hid_error_max_length_exceeded}
                          <!-- max_length_exceeded START -->
                          <tr>
                            <td></td>
                            <td colspan="2"><div class="form_error_message">Error: Allowed maximum of 100 characters exceeded.</div></td>
                          </tr>
                          <!-- max_length_exceeded END -->
                          {/if}
                          {if $category_hid_error_invalid_hid}
                          <!-- invalid_hid START -->
                          <tr>
                            <td></td>
                            <td colspan="2"><div class="form_error_message">Error: Invalid hid. Must be alphanumeric, starting with letter, underscore allowed. Example: adm2_list</div></td>
                          </tr>
                          <!-- invalid_hid END -->
                          {/if}
                          {if $category_hid_error_not_unique}
                          <!-- not_unique START -->
                          <tr>
                            <td></td>
                            <td colspan="2"><div class="form_error_message">Error: There is another item with same HID. Please choose different one.</div></td>
                          </tr>
                          <!-- not_unique END -->
                          {/if}
                          <!-- Potential errors END -->
                          {/if}
                        </table>
                        <!-- form_field_text category_hid END-->
                      </td>
                    </tr>
                    <tr>
                      <td class="form_even_row"><!-- form_field_integer_limited category_ordering START-->
                        <table width="100%" border="0" cellpadding="3" cellspacing="0" class="form_row">
                          <tr>
                            <td width="180"><div align="right">Ordering:</div></td>
                            <td width="1%"><input class="form" name="category_ordering" type="text" value="{$category_ordering_val}" maxlength="4" size="40" id="category_ordering" /></td>
                            <td><div align="left"><nobr>Integer value between 0 and 1000.</nobr></div></td>
                          </tr>
                          {if $category_ordering_has_error}
                          <!-- Potential errors START -->
                          {if $category_ordering_error_mandatory_missing}
                          <!-- mandatory_missing START -->
                          <tr>
                            <td></td>
                            <td colspan="2"><div class="form_error_message">Error: Field is mandatory.</div></td>
                          </tr>
                          <!-- mandatory_missing END -->
                          {/if}
                          {if $category_ordering_error_max_length_exceeded}
                          <!-- max_length_exceeded START -->
                          <tr>
                            <td></td>
                            <td colspan="2"><div class="form_error_message">Error: Allowed maximum of 4 characters exceeded.</div></td>
                          </tr>
                          <!-- max_length_exceeded END -->
                          {/if}
                          {if $category_ordering_error_not_a_number}
                          <!-- not_a_number START -->
                          <tr>
                            <td></td>
                            <td colspan="2"><div class="form_error_message">Error: Must be number.</div></td>
                          </tr>
                          <!-- not_a_number END -->
                          {/if}
                          {if $category_ordering_error_not_an_integer}
                          <!-- not_an_integer START -->
                          <tr>
                            <td></td>
                            <td colspan="2"><div class="form_error_message">Error: Must be integer value.</div></td>
                          </tr>
                          <!-- not_an_integer END -->
                          {/if}
                          {if $category_ordering_error_integer_greater}
                          <!-- integer_greater START -->
                          <tr>
                            <td></td>
                            <td colspan="2"><div class="form_error_message">Error: Entered value is bigger than expected maximum of 1000.</div></td>
                          </tr>
                          <!-- integer_greater END -->
                          {/if}
                          {if $category_ordering_error_integer_smaller}
                          <!-- integer_smaller START -->
                          <tr>
                            <td></td>
                            <td colspan="2"><div class="form_error_message">Error: Entered value is smaller than expected minimum of 0.</div></td>
                          </tr>
                          <!-- integer_smaller END -->
                          {/if}
                          <!-- Potential errors END -->
                          {/if}
                        </table>
                        <!-- form_field_integer_limited category_ordering END-->
                      </td>
                    </tr>
                  </table>
                  <input type="hidden" name="category_form_id" value="{$category_form_id_val}" id="category_form_id"/>
                  <input type="hidden" name="category_guard_value" value="{$category_guard_value_val}" id="category_guard_value"/>
                  <input type="hidden" name="category_parent" value="{$category_parent_val}" id="category_parent"/>
                </td>
              </tr>
              <tr>
                <td align="left"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="submit_row">
                    <tr>
                      <td width="180">&nbsp;</td>
                      <td width="100" align="left"><input name="category_submit" type="submit" value="Save" class="form_submit" />
                      </td>
                      <td width="50">&nbsp;</td>
                      <td><div class="form_cancel"><a href="admin/modules/tangra_cms/category/categories.php?parent_category={$parent_parent_category}">Cancel</a></div></td>
                    </tr>
                  </table></td>
              </tr>
            </table>
          </form>
        </div></td>
    </tr>
  </table>
  <!-- *** CUT bottom -->
